<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>1:1 문의</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="noindex" name="robots">
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 Gmt">
<meta http-equiv="Cache-Control" content="No-Cache">
<meta http-equiv="Pragma" content="No-Cache">

<link id="MainpageStyle1" type="text/css" rel="stylesheet"
	href="/spring-GOP/css/iframe.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link id="MainpageStyle" type="text/css" rel="stylesheet"
	href="/spring-GOP/css/myprimus/style_50.css">
<link id="pageStyle" type="text/css" rel="stylesheet"
	href="/spring-GOP/css/myprimus/style_5040.css">
</head>
<body>
	<form action="MyInquiry.jsp" method="post">
		<div class="sub-main-section c5040 " id="content"
			style="visibility: visible;">
			<div class="private-qna ">
				<table class="qna-table" style="padding: 0;"
					summary="이 표는 1:1 문의 정보를 제공하며 번호, 제목, 상태, 등록일별로 구성되어 있습니다.">
					<caption>1:1 문의 목록</caption>
					<colgroup>
						<col width="12%">
						<col width="*">
						<col width="11%">
						<col width="17%">
					</colgroup>
					<thead>
						<tr>
							<th scope="col" class="col-1"><span>번호</span></th>
							<th scope="col" class="col-2"><span>제목</span></th>
							<th scope="col" class="col-3"><span>답변</span></th>
							<th scope="col" class="col-4"><span>등록일</span></th>
						</tr>
					</thead>
					<tbody>
						<%-- <%
							if (list.size() == 0) {
						%>
						<tr class="no-list">
							<!-- 문의내역이 없음 -->
							<td colspan="4">문의내역이 없습니다.</td>
						</tr>
						<%
							} else {
						%>

						<c:forEach var="qna" items="${list}">
							<tr class="a-content">
							<!-- 문의 내역  -->
								<td scope="col" class="col-1">${qna.getQ_num()}</td>
								<td scope="col" class="col-2"><a style="cursor:pointer;" onclick="onNoticeClick(${qna.getQ_num()})">${qna.getSubject()}</a></td>
								<td scope="col" class="col-3">${qna.getRef()}<span>x</span></td>
								<td scope="col" class="col-4">${sdf.format(qna.getRegdate())}</td>
							</tr>
						</c:forEach>
						<%
							}
						%> --%>

						<c:forEach var="item" items="${qnaList}" varStatus="idx">
							<tr class="tr-end">
								<td scope="col" class="col-1">${idx.index + 1}</td>
								<td scope="col" class="col-2"><a style="cursor: pointer;"
									onclick="javascript:inquirypop(${item.q_num})">${item.subject}<%-- <%=list.get(i).getMovieTitle() %> --%></a></td>
								<td scope="col" class="col-3">x<%-- <%=sdf.format(list.get(i).getRegdate()) %> --%></td>
								<td scope="col" class="col-4">${item.regdate}<%-- <%=list.get(i).getMoviePrice() %> --%></td>
							</tr>
						</c:forEach>
						<script>
							function inquirypop(idx) {
								window
										.open(
												"/spring-GOP/myprimus/reservation/campsite/inquirypop?q_num=" + idx,
												"EventFrame",
												"menubar=no,width=600,height=400,toolbar=no");

							}
						</script>


					</tbody>
				</table>
			</div>

			<!-- 		<div class="margin-top15">
				<span class="right-btn"><a href="qna.html"
					class="button h30 w100 orange" target="_parent"
					title="문의하기(1:1 문의하기)"><b>문의하기</b></a></span>
			</div> -->
			<div class="page-box myqna" style="margin-top: 50px;">
				<div class="page-box myqna2">




					<input id="_hidPageNum" name="_hidPageNum" type="hidden" value="1">
					<input id="_hidActionName" name="_hidActionName" type="hidden"
						value="MyInquiry"> <input id="_hidControlName"
						name="_hidControlName" type="hidden" value="Reservation">
					<input id="_hidOrderBy" name="_hidOrderBy" type="hidden"
						value="DESC"> <input id="_hidOrderColumn"
						name="_hidOrderColumn" type="hidden" value=""> <input
						id="_hidSearchKeyword" name="_hidSearchKeyword" type="hidden"
						value="parachoi85"> <input id="_hidSearchCondition"
						name="_hidSearchCondition" type="hidden" value=""> <input
						name="_hidSearchSubmit" id="_hidSearchSubmit" type="submit"
						style="display: none">




				</div>
			</div>
		</div>
	</form>
</body>
</html>
